/**
 *  \brerf 
 *  \author pengcheng(pengcheng@adcsoft.cn)
 *  \date 2019.11.25
 *  \attention 
 * 
*/

#ifndef  ADCSOFT_TIME_ADCSOFT_H__
#define ADCSOFT_TIME_ADCSOFT_H__

#include <chrono>
#include <thread>

namespace adc
{

class Timer
{
public:
    Timer(const float& hz);

    void Start();

    void Stop();

private:
    std::chrono::duration<float> duration_;

    std::chrono::system_clock::time_point start_;

    std::chrono::duration<float> elapsed_;
};
}
#endif // ! ADCSOFT_TIME_H__
